package com.gxa.system_setting.controller;

import com.gxa.common.R;
import com.gxa.system_setting.service.RegionalOpeningService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class RegionalOpeningController {

    @Resource
    private RegionalOpeningService regionalOpeningService;

    //分页
    @GetMapping("/queryRegionalOpeningList")
    public R queryRegionalOpeningList(Integer currentPage,Integer pageSize){
        return regionalOpeningService.queryRegionalOpeningList(currentPage,pageSize);
    }

    //条件查询
    @GetMapping("/queryByKey")
    public R queryByKeyWord(String keyWord){
       return regionalOpeningService.queryByKeyWord(keyWord);
    }
}
